from urllib.request import urlopen
import bs4
import re
html = urlopen("http://www.weather.com.cn/weather1d/101280101.shtml#dingzhi_first").read().decode('utf-8')
soup = bs4.BeautifulSoup(html,features='lxml')  #lxml 是解析的器形式
img_links = soup.find_all('img',{'src':re.compile('.*?\.jpg')})
for i in img_links:
    print(i['src'])